credit2: Don't migrate cpus unnecessarily
authorKeir Fraser <keir@xen.org>
Fri, 10 Dec 2010 10:51:04 +0000 (10:51 +0000)
committerKeir Fraser <keir@xen.org>
Fri, 10 Dec 2010 10:51:04 +0000 (10:51 +0000)
commitb91346609837493de0fce489cc73f35d06094436
tree404a0ca2c5e2fbfb161f72f078d8998b2f5d8e61
parent8a743ca29cc17d3cf93933f9315956a1eda013d4
credit2: Don't migrate cpus unnecessarily

Modern processors have one or two L3's per socket, and generally only
one core per L2.  Credit2's design relies on having credit shared
across several.  So as a first step to sharing a queue across L3 while
avoiding excessive cross-L2 migration

Step one: If the vcpu's current cpu is acceptable, just run it there.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/common/sched_credit2.c